package com.googlecode.jch.plugin.templates;

import com.googlecode.jch.plugin.Icons;
import com.intellij.ide.fileTemplates.FileTemplateDescriptor;
import com.intellij.ide.fileTemplates.FileTemplateGroupDescriptor;
import com.intellij.ide.fileTemplates.FileTemplateGroupDescriptorFactory;
import com.intellij.openapi.fileTypes.StdFileTypes;

/**
 * @author Iskander Akishev
 */
public class JCHFileTemplateProvider implements FileTemplateGroupDescriptorFactory {
	public static final String SOLUTION_TEMPLATE = "Solution.java";
	public static final String SOLUTION_MAIN_METHOD_TEMPLATE = "JCH Solution Main Method.java";
	public static final String SOLUTION_BODY_TEMPLATE_PREFIX = "JCH Solution Body ";


	// todo
//	public static final String SOLUTION_BODY_DEFAULT_TEMPLATE = "SolutionBody_Default";
//	public static final String SOLUTION_BODY_MULTITEST_WITH_NUMBER_TEMPLATE = "SolutionBody_Multitest with number";
//	public static final String SOLUTION_BODY_MULTITEST_TILL_EOF = "SolutionBody_Multitest till EOF";

	public FileTemplateGroupDescriptor getFileTemplatesDescriptor() {
		final FileTemplateGroupDescriptor group = new FileTemplateGroupDescriptor("Java Contest Helper", Icons.SOLUTION);
		group.addTemplate(new FileTemplateDescriptor(SOLUTION_TEMPLATE, StdFileTypes.JAVA.getIcon()));

//		group.addTemplate(new FileTemplateDescriptor(SOLUTION_BODY_DEFAULT_TEMPLATE, Icons.SOLUTION));
//		group.addTemplate(new FileTemplateDescriptor(SOLUTION_BODY_MULTITEST_WITH_NUMBER_TEMPLATE, Icons.SOLUTION));
//		group.addTemplate(new FileTemplateDescriptor(SOLUTION_BODY_MULTITEST_TILL_EOF, Icons.SOLUTION));
		return group;
	}
}
